/*
*Copyright (c) Nikhil Jain.
*Project ICARUS, communications and 
*artificial intelligence.
*/



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package javadrone.remotepackage;

//~--- non-JDK imports --------------------------------------------------------

import simbad.sim.Box;
import simbad.sim.EnvironmentDescription;

//~--- JDK imports ------------------------------------------------------------

import java.io.Serializable;

import javax.vecmath.Color3f;
import javax.vecmath.Vector3d;
import javax.vecmath.Vector3f;

/**
 *
 * @author Nikzzay
 */
public class RemoteBox implements Serializable {
    public Color3f  color;
    public Vector3f extent;
    public Vector3d pos;

    public RemoteBox(Vector3d pos, Vector3f extent, Color3f color) {
        this.pos    = pos;
        this.extent = extent;
        this.color  = color;
    }

    public Box build(EnvironmentDescription ed) {
        if (color != null) {
            return new Box(pos, extent, ed, color);
        } else {
            return new Box(pos, extent, ed);
        }
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
